<div class="content">
<h2><?php echo $title ?></h2>

<p id="bottom_link"><a class="add" href="<?php echo site_url().'provinsi/add'?>">Tambah</a></p>
<table border="0" cellpadding="0" cellspacing="0">
	<tr>
		<th><div align="center">No</div></th>
		<th><div align="center">Nama Provinsi</div></th>
		<th><div align="center">Aksi</div></th>
	</tr>

<?php 
$i = 1 + $urut ;
foreach($query as $row):  ?>
	<tr class="<?php if ($i %2 == 0):echo "zebra";else:echo "zebra2"; endif;?>"> 
		<td><?php echo $i?></td>
		<td><?php echo $row['nama_provinsi']; ?></td>
		<td><div class="action"><a class="update" href="<?php echo site_url().'provinsi/edit/'.$row['id_provinsi'].'/'.$i?>">Edit</a> 
		<a class="delete" href="<?php echo site_url().'provinsi/delete/'.$row['id_provinsi'].'/'.$i?>">Hapus</a></div></td>
	</tr>
<?php 
$i++;
endforeach;?>
</table>
<br />
<?php if($this->pagination->create_links()==TRUE):?>
<p id="pagination">Halaman : <?php echo $this->pagination->create_links(); ?></p>
<?php endif; ?>
</div>